package org.example.common;

import lombok.Getter;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

/**
 * 权限认证成功返回实体
 */
@Getter
public class LoginRespVoExt extends LoginUserDetail {

    /**
     * token令牌
     */
    private String token;

    public LoginRespVoExt(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }

    public void setToken(String token) {
        this.token = token;
    }


}
